(string-lessp (downcase (cdr acons)) (downcase (cdr bcons))))
(defsubst which-key--group-p (description)
- (or (equal description "prefix")
+ (or (string-equal description "prefix")
+ (and (length> description 6)
+ (string-equal (substring description 0 6) "group:"))
(keymapp (intern description))))
(defun which-key-prefix-then-key-order (acons bcons)
((keymapp def) "prefix")
((symbolp def) (which-key--compute-binding def))
((eq 'lambda (car-safe def)) "lambda")
- ((eq 'menu-item (car-safe def))
- (which-key--get-menu-item-binding def))
((stringp def) def)
((vectorp def) (key-description def))
- ((consp def) (car def))
+ ((consp def) (concat (when (keymapp (cdr-safe def))
+ "group:")
+ (car def)))
(t "unknown")))))
(when (or (null filter)
(and (functionp filter)